import argparse
from gofishing.marketData import transferPVTable


def parseArgs():
    parser = argparse.ArgumentParser(
        description='transfer pv tables from specified database')
    parser.add_argument('--fromDB', help='filepath of source database')
    return parser.parse_args()


if __name__ == '__main__':
    args = parseArgs()
    fromDB: str = args.fromDB
    if fromDB:
        transferPVTable(fromDBPath=fromDB)
    else:
        transferPVTable()
